﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Xylee.Common
{
    /// <summary>
    /// Refers to when a navigation change is attempted. 
    /// See <seealso cref="Navigation"/>.Activate(string uri) method 
    /// for more information on this change.
    /// </summary>
    public class NavigateAttemptArgs : EventArgs
    {
        private string uri;
        private string portal;
        private bool handled;

        public NavigateAttemptArgs(string uri, string portal)
        {
            this.uri = uri;
            this.portal = portal;
            this.handled = false;
        }

        public string Uri
        {
            get { return this.uri; }
        }

        public string Portal
        {
            get { return this.portal; }
        }

        public bool Handled
        {
            get { return this.handled; }
            set { this.handled = value; }
        }
    }
}